From 8dad784e34c6ba1a442dee38c11c1bc5ad76f4e3 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Tue, 12 Aug 2014 10:02:01 -0400 Subject: [PATCH] .get() -> [] This fixes the build, which was broken due to the warnings. --- src/cargo/ops/cargo_rustc/job_queue.rs | 2 +- src/cargo/util/graph.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/ops/cargo_rustc/job_queue.rs b/src/cargo/ops/cargo_rustc/job_queue.rs index 270277214..abda5ff79 100644 --- a/src/cargo/ops/cargo_rustc/job_queue.rs +++ b/src/cargo/ops/cargo_rustc/job_queue.rs @@ -147,7 +147,7 @@ impl<'a, 'b> JobQueue<'a, 'b> { let id = pkg.get_package_id().clone(); if stage == StageStart { - let fresh = fresh.combine(*self.state.get(&pkg.get_package_id())); + let fresh = fresh.combine(self.state[pkg.get_package_id()]); let msg = match fresh { Fresh => "Fresh", Dirty => "Compiling" }; try!(config.shell().status(msg, pkg)); } diff --git a/src/cargo/util/graph.rs b/src/cargo/util/graph.rs index e256f8475..63e5a9ec3 100644 --- a/src/cargo/util/graph.rs +++ b/src/cargo/util/graph.rs @@ -56,7 +56,7 @@ impl Graph { marks.insert(node.clone(), InProgress); - for child in self.nodes.get(node).iter() { + for child in self.nodes[*node].iter() { self.visit(child, dst, marks); } -- 2.30.2